/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

import br.com.ufpb.halloc.exceptions.DisciplinaDuplicadaException;
import br.com.ufpb.halloc.exceptions.DisciplinaInexistenteException;
import br.com.ufpb.halloc.exceptions.DisciplinaInvalidaException;
import br.com.ufpb.halloc.negocio.Disciplina;
import java.util.List;

/**
 *
 * @author leonardo
 */
public interface  DisciplinaDAO {
    
    public boolean inserir(Disciplina disc) throws DisciplinaInvalidaException, DisciplinaDuplicadaException ;

    public boolean remover(Disciplina disc) throws DisciplinaInexistenteException;
    
    public Disciplina pesquisarID(String id) throws DisciplinaInexistenteException;
    
    public List<Disciplina> pesquisar(String nome) throws DisciplinaInvalidaException ;

    public boolean atualizar(Disciplina disc)throws DisciplinaInexistenteException;
    
}
